import request from '@/utils/request'

export function SniList(query) {
  return request({
    url: '/kong/sni/list',
    method: 'get',
    params: query
  })
}

export function getSniById(id) {
  return request({
    url: '/kong/sni/get/'+id,
    method: 'get',
  })
}

export function addSni(data) {
  return request({
    url: '/kong/sni/add',
    method: 'post',
    data:data,
  })
}

export function deleteSni(id) {
  return request({
    url: '/kong/sni/delete/'+id,
    method: 'post',
  })
}

export function updateSni(data) {
  return request({
    url: '/kong/sni/update/'+data.id,
    method: 'post',
    data:data
  })
}